package com.ruoyi.hotel.service.impl;

import com.ruoyi.hotel.domain.OrderPeopleInfo;
import com.ruoyi.hotel.mapper.OrderPeopleInfoMapper;
import com.ruoyi.hotel.service.IOrderPeopleInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class OrderPeopleInfoServiceImpl implements IOrderPeopleInfoService
{
    @Autowired
    private OrderPeopleInfoMapper orderPeopleInfoMapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public OrderPeopleInfo selectOrderPeopleInfoById(Long id)
    {
        return orderPeopleInfoMapper.selectOrderPeopleInfoById(id);
    }

    /**
     * 查询列表
     * 
     * @param orderPeopleInfo 
     * @return 
     */
    @Override
    public List<OrderPeopleInfo> selectOrderPeopleInfoList(OrderPeopleInfo orderPeopleInfo)
    {
        return orderPeopleInfoMapper.selectOrderPeopleInfoList(orderPeopleInfo);
    }

    /**
     * 新增
     * 
     * @param orderPeopleInfo 
     * @return 结果
     */
    @Override
    public int insertOrderPeopleInfo(OrderPeopleInfo orderPeopleInfo)
    {
        int row =  orderPeopleInfoMapper.insertOrderPeopleInfo(orderPeopleInfo);
        return row;
    }

    /**
     * 修改
     * 
     * @param orderPeopleInfo 
     * @return 结果
     */
    @Override
    public int updateOrderPeopleInfo(OrderPeopleInfo orderPeopleInfo)
    {
        return orderPeopleInfoMapper.updateOrderPeopleInfo(orderPeopleInfo);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteOrderPeopleInfoByIds(Long[] ids)
    {
        return orderPeopleInfoMapper.deleteOrderPeopleInfoByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteOrderPeopleInfoById(Long id)
    {
        return orderPeopleInfoMapper.deleteOrderPeopleInfoById(id);
    }
}
